﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace DEL.Sys
{
    /// <summary>
    /// 对象名称：角色的数据实体类（数据实体层）    
    /// 作者姓名：yb   
    public class Role : BaseT
    {
        [Required(ErrorMessage = "编码不能为空。")]
        [Display(Name = "编码")]
        public string Code { get; set; }

        [Required(ErrorMessage = "名称不能为空。")]
        [Display(Name = "名称")]
        public string Name { get; set; }

        

        public override string ToString() => Name;
    }
}
